package com.db.nearcache.app;

import com.db.nearcache.cache.Cache;
import com.db.nearcache.cache.CacheFactory;
import com.db.nearcache.remote.RemoteCacheFactory;

public class Client {

	private static final String SERVICE_UTL = "//localhost:4444/foobar";

	// no exception handling for simplicity
	public static void main(String[] args) throws Exception {

		CacheFactory factory = new RemoteCacheFactory(SERVICE_UTL);
		Cache cache = factory.getCache();

		System.out.println("Cache contents:");
		System.out.println(cache);
	}
}
